﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace MaxLeaf.Platform.DataContract
{
    [Serializable]
    [DataContract]
    [CommonsLib.ORM.DataTable(DBName = "MaxleafSCPLog", TableName = "SCPmLog", KeyPropName = "Key", ForeignKeyPropName = "ForeignKey")]
    public class SCPmLogDataModel : BaseDataModel
    {
        [DataMember]
        [CommonsLib.ORM.DataField("RecID", true)]
        public int Key
        {
            get;
            set;
        }

        [DataMember]
        [CommonsLib.ORM.DataField("LogType", "NChar", 50)]
        public string LogType
        {
            get;
            set;
        }

        [DataMember]
        [CommonsLib.ORM.DataField("UserID", "int", 4)]
        public string UserID
        {
            get;
            set;
        }

        [DataMember]
        [CommonsLib.ORM.DataField("Module", "NChar", 50)]
        public string Module
        {
            get;
            set;
        }

        [DataMember]
        [CommonsLib.ORM.DataField("OperDateTime", "Datetime", 10)]
        public DateTime OperDateTime
        {
            get;
            set;
        }

        [DataMember]
        [CommonsLib.ORM.DataField("OperType", "int",4)]
        public int OperType
        {
            get;
            set;
        }

        [DataMember]
        [CommonsLib.ORM.DataField("KeyFinterID", "int", 4)]
        public int KeyFinterID
        {
            get;
            set;
        }

        [DataMember]
        [CommonsLib.ORM.DataField("Remark", "NChar", 500)]
        public string Remark
        {
            get;
            set;
        }
    }
}
